#pragma once

#include <QDebug>

#include "../base/baseviewmodel.h"
#include "../base/baseviewmodelmanager.h"
#include "../observer/viewmodelsubject.h"
#include "../factory/viewmodelfactory.h"
#include "loginmodel.h"
#include "loginview.h"

/**
 * @brief The LoginViewModel class
 * 负责登录相关事务，包括登录的校验、登录成功后的初始化、页面跳转等
 */
class LoginViewModel:public BaseViewModel
{
public:
    LoginViewModel(BaseViewModelManager* manager=nullptr);
    virtual void update(QSharedPointer<Data> dataPtr) override;
    ~LoginViewModel() override;
private:

};
